// 引入项目中的全局组件
import SvgIcon from './SvgIcon/index.vue'

import Category from './Category/index.vue'

const globalComponent = {
  SvgIcon,
  Category,
}
// 引入icon全部组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

export default {
  install(app: any) {
    Object.keys(globalComponent).forEach((key: any) => {
      app.component(key, globalComponent[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
